<%@page import="sedev.shopping.entities.HinhThucDichVu"%>
<%@ include file="/init.jsp" %>
<%@include file="../script.jsp" %>
<%
	HinhThucDichVu data = (HinhThucDichVu)request.getAttribute("hinhthucdichvu");
%>
<div class="menu-box">
	<%@include file="../menu.jsp" %>
</div>
<div id="content-box">
	<div class="padding">
		<div id="toolbar-box">
			<div class="t">
				<div class="t">
					<div class="t"></div>
				</div>
			</div>
			<div class="m">
				<div id="toolbar" class="toolbar">
					<table class="toolbar">
						<tbody>
							<tr>
								<td id="toolbar-apply" class="button">
									<a class="toolbar" href="javascript:void(0)" onclick="shopping.postFormBusinessType('adminform')">
										<span title="Apply" class="icon-32-apply"></span>
										<liferay-ui:message key="label-apply" />
								   	</a>
							   	</td>
							   	<td id="toolbar-cancel" class="button">
							   		<a class="toolbar" href='<s:url action="businessType"></s:url>'>
							   			<span title="Cancel" class="icon-32-cancel"></span>
								        <liferay-ui:message key="label-cancel" />
								    </a>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="header icon-48-article">
					<liferay-ui:message key="label-update-business-type" />
	           	</div>
	           	<%
	           	Integer errorCode = (Integer)request.getAttribute("errorCode");
				if(errorCode!=null ){%>
					<dl id="system-message">
					    <%if(errorCode < 0){%>
					    <dd class="error message fade">
						    <ul>
						        <li><liferay-ui:message key="label-execute-error" /></li>
						    </ul>
						</dd>
						
					<%}else{%>
						<dd class="message message fade">
						    <ul>
						        <li><liferay-ui:message key="label-execute-success" /></li>
						    </ul>
						</dd>
					<%}%>
					</dl>
				<%}%>
				<div class="clr"></div>
			</div>
			<div class="b">
				<div class="b">
	            	<div class="b"></div>
	           	</div>
           	</div>
       	</div>
		<div id="element-box">
	        <div class="t">
	           <div class="t">
	               <div class="t"></div>
	           </div>
	        </div>
	        <div class="m">
				<form action='<s:url action="updateBusinessType"></s:url>' method="post" id="adminform" name="adminform">
					<table width="100%">
						<tr>
							<td width="15%">
								<label><liferay-ui:message key="label-business-type-name" /> :</label>
							</td>
							<td>
					    		<input id="title" type="text" name="title" value="<%=data.getTen() %>" size="50" maxlength="255"/>
					        </td>
					    </tr>				        
					</table>
					<input type="hidden" value="<%=data.getId()%>" name="id"/>			    
				</form>
	        </div>
	        <div class="b">
	           <div class="b">
	               <div class="b"></div>
	           </div>
	        </div>
	    </div>
	</div>
</div>